package com.example.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import org.springframework.data.relational.core.mapping.Table;

@TableName(value = "users")
public class User {
    @TableId(value = "id",type= IdType.AUTO)
    private Integer id;
    private String username;
    private String sex;
    private String password;

    public User(User sUser) {
        this.id = sUser.getId();
        this.username = sUser.getUsername();
        this.sex = sUser.getSex();
        this.password = sUser.getPassword();
    }
    public User() {
        super();
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getUsername() {
        return username;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getPassword() {
        return password;
    }
}
